<html><body>
It is recommended to treat <code>Unit</code> as any other type and to write it explicitly in method declarations.
<br/>
<br/>
* Reference: The talk <a href="http://www.parleys.com/play/51c1994ae4b0d38b54f4621b/chapter46/agenda">"Scala with Style"</a>  by Martin Odersky at
ScalaDays 2013
<br/>
<br/>
<em>Hint:</em> You can use Analyze / Run Inspection by Name (Ctrl+Alt+Shift+I) to apply this inspection to the whole project
<br/>
<br/>
Old description:<br/>
<small>
    <code>Unit</code> result type annotation is redundant:
<pre><code><span style="color:#808080">  // excessive clutter</span><br>  <strong style="color:#000080">def</strong> foo(): Unit
    <span style="color:#808080">// concise form</span><br>  <strong style="color:#000080">def</strong> foo()</code></pre>
    * Refer to Programming in Scala, 2.3 Define some functions
</small>
</body></html>
<!--<code>Unit</code> result type annotation is redundant:

<pre><code><span style="color:#808080">  // excessive clutter</span><br>  <strong style="color:#000080">def</strong> foo(): Unit
  <span style="color:#808080">// concise form</span><br>  <strong style="color:#000080">def</strong> foo()</code></pre>
<small>* Refer to Programming in Scala, 2.3 Define some functions</small>-->
